<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{{ asset('/admins/css/bootstrap.min.css') }}" rel="stylesheet"> 
    <script src="{{ asset('/admins/js/jquery.min.js') }}"></script>
    <script src="{{ asset('/admins/js/bootstrap.min.js') }}"></script>
</head>
<body>
        <div style="margin-left:30px;">   
            <!--  <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">商品修改</h1>
                </div>
            </div> -->
                @if(session('error'))
                    <div class="alert alert-warning">
                               {{ session('error') }}
                    </div>
                @endif

                        
           
            <form action="/admin/goods" method="post" enctype="multipart/form-data">

            <div class="panel-body">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs">
                                <li class="active"><a href="#home" data-toggle="tab" aria-expanded="true">基本</a>
                                </li>
                               
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div class="tab-pane fade active in" id="home">
                                    
                                    <div class="form-group">
                                        <label>所属分类</label>
                                            <select name="cid" class="form-control" style="width:250px">
                                                <option>顶级分类</option>
                                            @foreach($cates as $k=>$v)
                                                    <option value="{{$v->id}}" >{{$v->name}}</option>
                                            @endforeach
                                            </select>
                                    </div>
                                    <div class="form-group">
                                        <label>商品标题</label>
                                        <input name="name" class="form-control" placeholder="" style="width:500px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>添加标签</label>
                                        <input name="biaoqian" class="form-control" placeholder="" style="width:500px;"> 
                                    </div>
                                    
                                   
                                    <div class="form-group">
                                            <label>状态</label>
                                            <label class="radio-inline">
                                                <input name="status" id="optionsRadiosInline1" value="1" checked="checked" type="radio">上架
                                            </label>
                                            <label class="radio-inline">
                                                <input name="status" id="optionsRadiosInline2" value="0" type="radio" >下架
                                            </label>
                                    </div>
                                    <div class="form-group">
                                        <label>排序</label>
                                        <input name="paixu" class="form-control" placeholder=""style="width:500px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>上架时间</label>
                                        <input name="shelvetime" class="form-control" placeholder="" style="width:500px;"> 
                                    </div>
                                   
                                </div>
                              
                               
                            </div>
                            <input name="_token" value="{{ csrf_token() }}" type="hidden"> 
                            <button type="submit" class="btn btn-primary">提交</button>
                            <button type="button" class="btn btn-primary">保存草稿</button>
                            <button type="button" class="btn btn-success">取消</button>
                        </div>
                        </form>
        </div>


